package cn.com.connected.vo.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

/**
 * 作者:   邵明生
 * 时间:   2019/3/18 10:12
 * 描述:   token 内容
 */

@Data
@Builder
@AllArgsConstructor
public class TokenVO {
    @ApiModelProperty(notes = "用户ID")
    private String id;

    @ApiModelProperty(notes = "用户 scope")
    private String scope;

    @ApiModelProperty(notes = "token 创建时间")
    private Date createtime;

    @ApiModelProperty(notes = "token 有效时长")
    private Long expireTime;


    @Tolerate
    public TokenVO() {
    }
}
